﻿<%@ Page Title="" Language="C#" MasterPageFile="~/admin/Admin_Master.master" AutoEventWireup="true" CodeFile="detailOrder.aspx.cs" Inherits="admin_detailOrder" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder2" runat="Server">
    <ul id="top-navigation">
       
        <li><span><span><a href="user.aspx">Users</a></span></span></li>
        <li><span><span><a href="product.aspx">Products</a></span></span></li>
        <li><span><span><a href="category.aspx">Category</a></span></span></li>
        <li class="active"><span><span><a href="order.aspx">Orders</a></span></span></li>
    </ul>
</asp:Content>


<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <span style="float:right; margin-right:30px; margin-bottom:10px;">
            <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/admin/order.aspx" Font-Underline="True">Back</asp:HyperLink></span>
    <br />
    <div class="select-bar">
        <label>
            <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
        </label>
        <label>
            <asp:Button ID="Button1" runat="server" Text="Search" />
            <asp:Label ID="Message" runat="server" Text=""></asp:Label>
        </label>
    </div>



    <table class="listing form" cellpadding="0" cellspacing="0">
        <tr>
            <td class="first" width="180">Mã đơn hàng: </td>
            <td class="last">
                <asp:TextBox ID="txtOrderId" runat="server" Width="250" Enabled="False"></asp:TextBox></td>
        </tr>
        <tr>
            <td class="first">Người đặt hàng: </td>
            <td class="last">
                <asp:TextBox ID="txtUserName" runat="server" Width="250" Enabled="False"></asp:TextBox></td>
        </tr>
        <tr>
            <td class="first">Ngày đặt hàng:</td>
            <td class="last">
                <asp:TextBox ID="txtDate" runat="server" Width="250" Enabled="False"></asp:TextBox>

            </td>
        </tr>
        <tr>
            <td class="first">Người nhận hàng: </td>
            <td class="last">
                <asp:TextBox ID="txtNameOfReceiver" runat="server" Width="250" Enabled="False"></asp:TextBox></td>
        </tr>
        <tr>
            <td class="first">Địa chỉ người nhận: </td>
            <td class="last">
                <asp:TextBox ID="txtAddressOfReceiver" runat="server" Width="250" Enabled="False"></asp:TextBox></td>
        </tr>
        <tr>
            <td class="first">Điện thoại người nhận: </td>
            <td class="last">
                <asp:TextBox ID="txtPhoneOfReceiver" runat="server" Width="250" Enabled="False"></asp:TextBox></td>
        </tr>
        <tr>
            <td class="first">Trạng thái: </td>
            <td class="last">
                <asp:CheckBox ID="chbxStatus" runat="server" Width="20px" Height="20" Enabled="False" /></td>
        </tr>
        <tr>
            <td class="first">Sản phẩm đặt:</td>
            <td class="last">
                <asp:GridView ID="gvOrderProduct" runat="server" AutoGenerateColumns="False">
                    <Columns>
                        <asp:TemplateField HeaderText="Mã s&#7843;n ph&#7849;m" SortExpression="ProId">
                            <ItemTemplate>
                                <asp:Label ID="lblProName" runat="server" Text='<%# Bind("ProId") %>'></asp:Label>
                            </ItemTemplate>
                            <HeaderStyle HorizontalAlign="Center" />
                            <ItemStyle HorizontalAlign="Center"  CssClass="StyleOrderProductShort" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Tên s&#7843;n ph&#7849;m" SortExpression="ProName">
                            <ItemTemplate>
                                <asp:Label ID="lblProName" runat="server" Text='<%# Bind("ProName") %>'></asp:Label>
                            </ItemTemplate>
                            <HeaderStyle HorizontalAlign="Center" />
                            <ItemStyle HorizontalAlign="Center"  CssClass="StyleOrderProduct" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Giá s&#7843;n ph&#7849;m" SortExpression="Price">
                            <ItemTemplate>
                                <asp:Label ID="lblProName" runat="server" Text='<%# Bind("Price") %>'></asp:Label>
                            </ItemTemplate>
                            <HeaderStyle HorizontalAlign="Center" />
                            <ItemStyle HorizontalAlign="Center"  CssClass="StyleOrderProductShort" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="S&#7889; l&#432;&#7907;ng" SortExpression="Quantity">
                            <ItemTemplate>
                                <asp:Label ID="lblProName" runat="server" Text='<%# Bind("Quantity") %>'></asp:Label>
                            </ItemTemplate>
                            <HeaderStyle HorizontalAlign="Center"  />
                            <ItemStyle HorizontalAlign="Center" CssClass="StyleOrderProductShort" />
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
            </td>
        </tr>
        <tr>
            <td class="first">Tổng số tiền: </td>
            <td class="last">
                <asp:TextBox ID="txtTongTien" runat="server" Width="250" Enabled="False"></asp:TextBox></td>
            </td>
        </tr>
        <tr>
            <td class="first"></td>
            <td class="last">
                <asp:Button ID="btnEdit" runat="server" Text="Cập nhật trạng thái" CssClass="button2" OnClick="btnEdit_Click" />
                <asp:Button ID="btnUpdate" runat="server" Text="Cập nhật" CssClass="button1" OnClick="btnUpdate_Click" />
                <asp:Button ID="btnCancel" runat="server" Text="Hủy bỏ;" CssClass="button1" OnClick="btnCancel_Click" />
            </td>
        </tr>
        <tr>
            <td></td>
            <td></td>
        </tr>
    </table>
</asp:Content>

